/* Hunter.java
 * 
 * Alfred Olschnoegger
 * 22.05.2008
 */

package domain;

import java.util.Calendar;
import java.util.Date;

import domain.location.Position;

/**
 * This class represents the players of the rabbit hunter game
 *
 * @date 22.05.2008
 * @author Alfred Olschnoegger
 */

public class Hunter {
	private String m_Name;
	private long m_AuthKey;
	private int m_Kills = 0;
	private Position m_Pos;
	
	public Hunter (String name, long password) {
		m_Name = name;
		m_AuthKey = password;		
	}
	
	public Hunter () {}
	
	// getters / setters
	public String getName() {
		return m_Name;
	}
	
	public void setName(String name) {
		m_Name = name;
	}
	
	public boolean isAuthKey(long password) {
		if(password == m_AuthKey) {
			return true;
		}
		return false;
	}
	
	public void setPassword(long authKey) {
		m_AuthKey = authKey;
	}
	
	public int getKills() {
		return m_Kills;
	}
	
	public void increaseKills() {
		m_Kills++;
	}

	public Position getPos() {
		return m_Pos;
	}

	public void setPos(Position pos) {
		m_Pos = pos;
	}

	public long getPassword() {
		return m_AuthKey;
	}

	public void setKills(int kills) {
		m_Kills = kills;		
	}


}


// end of Hunter.java
